package com.itheima.consumer.feign;

import com.itheima.consumer.config.FeignLogConfig;
import com.itheima.consumer.domain.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "eureka-provider" ,configuration = FeignLogConfig.class)
public interface GoodsControllerFeignClient {
    @RequestMapping("/goods/find/{id}")
    public Goods findById(@PathVariable("id") int id);
}
